{extend name="shop/showstore/common/store_layout" /}
{block name="content"}

<?php 
//加载店铺装修静态页
if(isset($decoration_file)) { 
    require($decoration_file);
} 
?>
<?php if(!$store_decoration_only) {?>

	
	<?php if(isset($decoration_banner)) { ?>
	    <!-- 启用店铺装修 -->
	    <?php if($decoration_banner['display'] == 'true') { ?>
		    <!--<div id="decoration_banner" class="banner"> 
		    	<img src="<?php echo $decoration_banner['image_url'];?>" alt=""> 
		    </div>-->
		    <!-- 
		    <div class="signage">
			    <div class="container">
			        <a class="signage-logo" href="<?php echo url('shop/Showstore/index', array('store_id'=>$store_info['store_id']));?>">
			        	<img src="<?php echo getStoreLogo($store_info['store_label'],'store_logo');?>" alt="">
			        </a>
			        <a class="signage-shouC" href="javascript:collect_store('<?php echo $store_info['store_id'];?>','count','store_collect')" title="收藏店铺">
			        	<img src="__SHOP_DEFAULT__/store/style/style3/images/signage-shouC.png" alt="">
			        </a>
			        <?php if(!empty($store_adv[0])){?>
			        	<a class="signage-goods" href="{$store_adv_url[0]}">
				        	<img src="__UPLOAD_PATH__/shop/store/slide/{$store_adv[0]}" alt="">
				        </a>
					<?php }?>
			        
			        <div class="clearfix"></div>
			    </div>
			</div> -->
	    <?php } ?>
	<?php } else { ?>
	    <!-- 不启用店铺装修 -->
	   <!--  <div class="signage">
		    <div class="container">
		        <a class="signage-logo" href="<?php echo url('shop/Showstore/index', array('store_id'=>$store_info['store_id']));?>">
		        	<img src="<?php echo getStoreLogo($store_info['store_label'],'store_logo');?>" alt="">
		        </a>
		        <a class="signage-shouC" href="javascript:collect_store('<?php echo $store_info['store_id'];?>','count','store_collect')" title="收藏店铺">
		        	<img src="__SHOP_DEFAULT__/store/style/style3/images/signage-shouC.png" alt="">
		        </a>
		        <?php if(!empty($store_adv[0])){?>
		        	<a class="signage-goods" href="{$store_adv_url[0]}">
			        	<img src="__UPLOAD_PATH__/shop/store/slide/{$store_adv[0]}" alt="">
			        </a>
				<?php }?>
		        <div class="clearfix"></div>
		    </div>
		</div> -->
	<?php } ?>

<div class="wrapper" style="width:100%; margin:0 auto; text-align:center">
	<div class="flexslider">
      <ul class="slides">
        <?php if(!empty($store_slide) && is_array($store_slide)){?>
        <?php for($i=0;$i<5;$i++){?>
        <?php if($store_slide[$i] != ''){?>
        <li><a style="background: url('__UPLOAD_PATH__/shop/store/slide/{$store_slide[$i]}') no-repeat center center;" <?php if($store_slide_url[$i] != '' && $store_slide_url[$i] != 'http://'){?>href="<?php echo $store_slide_url[$i];?>"<?php }?>></a></li>
        <?php }?>
        <?php }?>
        <?php }else{?>        
        <li><a style="background:url('__UPLOAD_PATH__/shop/store/slide/f01.jpg') no-repeat center center;" href="javascript:;"></a></li>
        <li><a style="background: url('__UPLOAD_PATH__/shop/store/slide/f02.jpg') no-repeat center center;" href="javascript:;"></a></li>
        <li><a style="background: url('__UPLOAD_PATH__/shop/store/slide/f03.jpg') no-repeat center center;" href="javascript:;"></a></li>
        <li><a style="background: url('__UPLOAD_PATH__/shop/store/slide/f04.jpg') no-repeat center center;" href="javascript:;"></a></li>
        <?php }?>
      </ul>
    </div>
 </div>  
 
 <div class="store-guangG">
 	<?php if(!empty($store_adv[0])){?>
		<a href="{$store_adv_url[0]}">
			<img src="__UPLOAD_PATH__/shop/store/slide/{$store_adv[0]}">
		</a>
	<?php }?>
</div>

<div class="store-zhendian">
    <div class="container">
        <div class="title">
        	<!--背景图一-->
			<?php if(!empty($store_bg[0])){?>
				<img src="__UPLOAD_PATH__/shop/store/slide/{$store_bg[0]}">
			<?php }else{?>
				<img src="__SHOP_DEFAULT__/store/style/style3/images/store-title1.png" alt="">
			<?php }?>
        	
        </div>
    </div>
</div>

<div class="store-guangG">
	<?php if(!empty($store_adv[1])){?>
		<a href="{$store_adv_url[1]}">
			<img src="__UPLOAD_PATH__/shop/store/slide/{$store_adv[1]}">
		</a>
	<?php }?>
</div>

<div class="store-block">
    <div class="container">
        <div class="store-kuai">
            <div class="store-right">
                <ul>
                	{volist name="town_goods_list" id="vo" length='6'}
	                	<li>
	                        <a href="{:url('shop/Goods/index',array('goods_id'=>$vo['goods_id']))}" title="{$vo['goods_name']}">
	                            <div class="goods-img">
	                            	<img src="{:cthumb($vo['goods_image'], 360,$vo['store_id'])}">
	                            </div>
	                            <h2>{$vo['goods_name']}</h2>
	                            <p><span><i>￥</i>{$vo['goods_promotion_price']}<em>/</em></span><em>立即购买</em></p>
	                        </a>
	                    </li>
					{/volist}
                    
                </ul>
            </div>
        </div>
        <div class="clearfix"></div>
        <div class="store-zhendian">
            <div class="title">
            	<!--背景图二-->
				<?php if(!empty($store_bg[1])){?>
					<img src="__UPLOAD_PATH__/shop/store/slide/{$store_bg[1]}">
				<?php }else{?>
					<img src="__SHOP_DEFAULT__/store/style/style3/images/store-title2.png">
				<?php }?>
            	
            </div>
        </div>
        <div class="store-guangG">
			<?php if(!empty($store_adv[2])){?>
				<a href="{$store_adv_url[2]}">
					<img src="__UPLOAD_PATH__/shop/store/slide/{$store_adv[2]}">
				</a>
			<?php }?>
		</div>
        <div class="store-di">
            <ul>
            	{volist name="new_goods_list" id="vo" length='4'}
	            	<li>
	                    <a href="{:url('shop/Goods/index',array('goods_id'=>$vo['goods_id']))}" title="{$vo['goods_name']}">
	                        <div class="goods-img">
	                        	<img src="{:cthumb($vo['goods_image'], 360,$vo['store_id'])}">
	                        </div>
	                        <h2>{$vo['goods_name']}</h2>
	                        <p><span><i>￥</i>{$vo['goods_promotion_price']}<em>/</em></span><em>立即购买</em></p>
	                    </a>
	                </li>
				{/volist}
                
            </ul>
        </div>
    </div>
</div>
  

		


<!-- 引入幻灯片JS --> 
<script type="text/javascript" src="__SITE_RESOURCE__/js/jquery.flexslider-min.js"></script> 
<!-- 绑定幻灯片事件 --> 
<script type="text/javascript">
	$(window).load(function() {
		$('.flexslider').flexslider();


	    // 图片切换效果
	    $('.goods-thumb-scroll-show').find('a').mouseover(function(){
	        $(this).parents('li:first').addClass('selected').siblings().removeClass('selected');
	        var _src = $(this).find('img').attr('src');
	        _src = _src.replace('_60.', '_240.');
	        _src = _src.replace('-60', '-240');
	        $(this).parents('dt').find('.goods-thumb').find('img').attr('src', _src);
	    });
	});
</script>
<?php } ?>
	
{/block}
